import { createBrowserRouter } from 'react-router';
import App from '../App';
import Editor from '../pages/Editor';
import { DndProvider } from 'react-dnd';
import { HTML5Backend } from 'react-dnd-html5-backend';
const router = createBrowserRouter([
  {
    path: "/",
    element: <App />,
    children: [
      {
        index: true,
        element: <DndProvider backend={HTML5Backend}>
            <Editor />
          </DndProvider>
      },

    ]
  }
]);
export default router;